package com.yunda.AJDeviceService.data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@TableName("chn_info")
public class ChnInfoData implements Serializable {

    @TableId(value = "secret",type = IdType.INPUT)
    //"通道唯一标识"
    private String secret;
    @TableField(value = "device_secret")
    //"设备唯一标识"
    private String deviceSecret;
    //"分拨编码")
    @TableField(value = "dbct_code")
    private String dbctCode;
    @TableField(value = "site_code")
    //场地编码")
    private String siteCode;
    //"分拨名称")
    @TableField(value = "dbct_name")
    @JsonIgnore
    private String dbctName;
    //"组织")
    @TableField(value = "org")
    @JsonIgnore
    private String org;
    //"sdk内网IP")
    @TableField(value = "ip")
    private String ip;
    //"tcp 端口 sdk")
    @TableField(value = "port")
    private Integer port;
    //"sdk账号")
    @TableField(value = "user")
    private String user;
    //"sdk密码")
    @TableField(value = "pwd")
    private String pwd;

    @TableField(value = "rtsp_ip")
    //"rtsp外网IP")
    private String rtspIp;
    @TableField(value = "rtsp_port")
    //"rtsp端口")
    private Integer rtspPort;
    @TableField(value = "rtsp_user")
    //"rtsp账号")
    private String rtspUser;
    @TableField(value = "rtsp_pwd")
    //"rtsp密码")
    private String rtspPwd;
    @TableField(value = "chn")
    //"通道号")
    private int chn;
    //"通道名")
    @TableField(value = "chn_name")
    private String chnName;
    @TableField(value = "rtsp_url")
    //"rtsp视频链接")
    private String rtspUrl;
    @TableField(value = "rtsp_url_his")
    //"rtsp视频回放链接")
    private String rtspUrlHis;
     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    //创建时间
    private Date createTime;

}
